﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BiliBiliCSharpStudy.clazz.ch27.d01 {
    class PatternDemo01 {
        public static void Demo() {
            Test1();
        }

        public static void Test1() { }
    }

    class Car {
        public void Run() {
            Console.WriteLine("Car is running...");
        }
        public void Stop() {
            Console.WriteLine("Stopped!");
        }
    }

    class Truck {
        public void Run() {
            Console.WriteLine("Truck is running...");
        }
        public void Stop() {
            Console.WriteLine("Stopped!");
        }
    }
}
